﻿using BCCommon.OAEnums;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.Attendance.AttendanceLocation
{
    /// <summary>
    /// 考勤位置请求模型。
    /// </summary>
    public class AttendanceLocationRequestDto
    {
        /// <summary>
        /// 考勤方式Id
        /// </summary>		      
        [Display(Name = "考勤方式Id")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public CheckInMode ModeId { get; set; }
        /// <summary>
        /// 地址名称
        /// </summary>		      
        [Display(Name = "地址名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string LocationName { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>		      
        [Display(Name = "详细地址")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Address { get; set; }
        /// <summary>
        /// 经度
        /// </summary>		      
        [Display(Name = "经度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public double Longitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>		      
        [Display(Name = "纬度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public double Latitude { get; set; }
        /// <summary>
        /// 有效范围(米)
        /// </summary>		
        [Display(Name = "有效范围(米)")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public double EffectiveScope { get; set; }
    }
}
